package com.jiumi.api.entity;

import com.jiumi.common.annotation.Excel;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 用户对象 sys_user
 *
 * @author jiumi
 */
public class SysUserDo
{
    private static final long serialVersionUID = 1L;



    /** 用户账号 */
    @Excel(name = "登录名称")
    private String userName;

    /** 密码 */
    private String password;

    private String againPassword;
    private String inviteCode;

    /** 验证码 */
    private String code;

    private String userType;

    @NotBlank(message = "注册不能为空")
    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    @NotBlank(message = "手机号不能为空")
    @Size(min = 0, max = 30, message = "手机号长度不能超过30个字符")
    public String getUserName()
    {
        return userName;
    }

    public void setUserName(String userName)
    {
        this.userName = userName;
    }


    @NotBlank(message = "密码不能为空")
    @Size(min = 6, max = 16, message = "密码长度6-16个字符")
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Size(min = 0, max = 6, message = "验证码长度为6个字符")
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getAgainPassword() {
        return againPassword;
    }

    public void setAgainPassword(String againPassword) {
        this.againPassword = againPassword;
    }

    public String getInviteCode() {
        return inviteCode;
    }

    public void setInviteCode(String inviteCode) {
        this.inviteCode = inviteCode;
    }
}
